package com.ruoyi.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 订单设置对象 _setting
 *
 * @author ruoyi
 * @date 2021-11-25
 */
public class SysCommoditySetting extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * $column.columnComment
     */
    private Long id;

    /**
     * 秒杀订单超时关闭时间(分)
     */
    @Excel(name = "秒杀订单超时关闭时间(分)")
    private Long flashOvertime;

    /**
     * 正常订单超时时间(分)
     */
    @Excel(name = "正常订单超时时间(分)")
    private Long normalOvertime;

    /**
     * 发货后自动确认收货时间（天）
     */
    @Excel(name = "发货后自动确认收货时间", readConverterExp = "天=")
    private Long confirmOvertime;

    /**
     * 自动完成交易时间，不能申请售后（天）
     */
    @Excel(name = "自动完成交易时间，不能申请售后", readConverterExp = "天=")
    private Long finishOvertime;

    /**
     * 订单完成后自动好评时间（天）
     */
    @Excel(name = "订单完成后自动好评时间", readConverterExp = "天=")
    private Long commentOvertime;

    @Excel(name = "状态")
    private Long status;

    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() {
        return id;
    }

    public void setFlashOvertime(Long flashOvertime) {
        this.flashOvertime = flashOvertime;
    }

    public Long getFlashOvertime() {
        return flashOvertime;
    }

    public void setNormalOvertime(Long normalOvertime) {
        this.normalOvertime = normalOvertime;
    }

    public Long getNormalOvertime() {
        return normalOvertime;
    }

    public void setConfirmOvertime(Long confirmOvertime) {
        this.confirmOvertime = confirmOvertime;
    }

    public Long getConfirmOvertime() {
        return confirmOvertime;
    }

    public void setFinishOvertime(Long finishOvertime) {
        this.finishOvertime = finishOvertime;
    }

    public Long getFinishOvertime() {
        return finishOvertime;
    }

    public void setCommentOvertime(Long commentOvertime) {
        this.commentOvertime = commentOvertime;
    }

    public Long getCommentOvertime() {
        return commentOvertime;
    }

    public Long getStatus() {
        return status;
    }

    public void setStatus(Long status) {
        this.status = status;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("flashOvertime", getFlashOvertime())
                .append("normalOvertime", getNormalOvertime())
                .append("confirmOvertime", getConfirmOvertime())
                .append("finishOvertime", getFinishOvertime())
                .append("commentOvertime", getCommentOvertime())
                .append("status", getStatus())
                .toString();
    }
}
